<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
		<script type="text/javascript">
		function Father(n,a,b){
			 this.name = n;
			 this.addr = a;
			 this.sex =b;
		}
		Father.prototype.run = function()
		{
			console.log('hello world');
		}
		function Son(){

		}
		var fa = new Father();
		Son.prototype =fa ;
		var son = new Son();
		Father.call(son,'jack','nanjing');
		son.run();
		
		</script>
</body>
</html>